var yin=document.querySelector("#nav2");
window.onscroll=function(){
  if(document.documentElement.scrollTop>300||document.body.scrollTop>300){
    yin.style.display="block";
  }else{
    yin.style.display="none";
  }
}
